<?php /* Smarty version 2.6.26, created on 2018-07-25 19:54:02
         compiled from default/goods/comment.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'uqcms', 'default/goods/comment.html', 1, false),array('modifier', 'img_size', 'default/goods/comment.html', 33, false),array('modifier', 'date_format', 'default/goods/comment.html', 58, false),)), $this); ?>
					<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'comment','c' => "comment:goods_id=smarty.get.id&page=smarty.get.page&ccid=smarty.get.ccid"), $this);?>

						<div class="comment_s">
							<div class="fs">
								<strong><?php echo $this->_tpl_vars['row']['score_good_rate']*100; ?>
<i>%</i></strong><span>好评度</span>
							</div>
							<div class="bf">
								<dl>
									<dt>好评(<?php echo $this->_tpl_vars['row']['score_good_rate']*100; ?>
%)：</dt>
									<dd><span style="width:<?php echo $this->_tpl_vars['row']['score_good_rate']*100; ?>
%;"></span></dd>
								</dl>
								<dl>
									<dt>中评(<?php echo $this->_tpl_vars['row']['score_average_rate']*100; ?>
%)：</dt>
									<dd><span style="width:<?php echo $this->_tpl_vars['row']['score_average_rate']*100; ?>
%;"></span></dd>
								</dl>
								<dl>
									<dt>差评(<?php echo $this->_tpl_vars['row']['score_bad_rate']*100; ?>
%)：</dt>
									<dd><span style="width:<?php echo $this->_tpl_vars['row']['score_bad_rate']*100; ?>
%;"></span></dd>
								</dl>
							</div>
						</div>
						<div class="comment_l" id="comment">
							<div class="comMenu">
								<a href="?m=goods&a=detail&id=<?php echo $_GET['id']; ?>
&ccid=#comment" <?php if ($_GET['ccid'] == ''): ?>class="ch"<?php endif; ?>>全部评价（<?php echo $this->_tpl_vars['row']['comment']; ?>
）</a>
								<a href="?m=goods&a=detail&id=<?php echo $_GET['id']; ?>
&ccid=1#comment" <?php if ($_GET['ccid'] == '1'): ?>class="ch"<?php endif; ?>>好评（<?php echo $this->_tpl_vars['row']['score_good']; ?>
）</a>
								<a href="?m=goods&a=detail&id=<?php echo $_GET['id']; ?>
&ccid=2#comment" <?php if ($_GET['ccid'] == '2'): ?>class="ch"<?php endif; ?>>中评（<?php echo $this->_tpl_vars['row']['score_average']; ?>
）</a>
								<a href="?m=goods&a=detail&id=<?php echo $_GET['id']; ?>
&ccid=3#comment" <?php if ($_GET['ccid'] == '3'): ?>class="ch"<?php endif; ?>>差评（<?php echo $this->_tpl_vars['row']['score_bad']; ?>
）</a>
							</div> 
					<?php if ($this->_tpl_vars['comment']['list']): ?>	
						<?php $_from = $this->_tpl_vars['comment']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
							<div class="comBox">
								<div class="user">
									<a href="#">
										<img src="<?php if ($this->_tpl_vars['c']['avatar']): ?><?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['avatar'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '60x60') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '60x60')); ?>
<?php else: ?><?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/avatar.png<?php endif; ?>"/>
									</a>
									<span><?php echo $this->_tpl_vars['c']['nick']; ?>
</span>
								</div>
								<div class="con">
									<div class="user_comment">
										<div class="p"><span class="pf" data-score="<?php echo $this->_tpl_vars['c']['score']; ?>
"></span></div>
										<div class="p content"><?php echo $this->_tpl_vars['c']['content']; ?>
</div> 
										<?php if ($this->_tpl_vars['c']['comment_img']): ?>
											<?php if ($this->_tpl_vars['c']['comment_img']): ?>
												<div class="p con_img">
													<?php $_from = $this->_tpl_vars['c']['comment_img']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['img']):
?>
														<div class="cimg">
															<a href="javascript:;"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['img'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '60x60') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '60x60')); ?>
" width="60" height="60"/></a>
														</div>
													<?php endforeach; endif; unset($_from); ?>
												</div>
											<?php endif; ?>
										<?php endif; ?> 
										<div class="p sku">
											<span>
												<?php $_from = $this->_tpl_vars['c']['sku_value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
													<?php echo $this->_tpl_vars['i']['key']; ?>
: <?php echo $this->_tpl_vars['i']['val']; ?>
      
												<?php endforeach; endif; unset($_from); ?>
											</span>
											<span><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['addtime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M')); ?>
'</span>
										</div>
									</div>
									<?php if ($this->_tpl_vars['c']['reply_time'] != 0): ?>
										<div class="shop_reply">	
											<p class="con"><?php echo $this->_tpl_vars['c']['reply']; ?>
</p>
											<p class="time"><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['reply_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M')); ?>
'</p>
										</div>
									<?php endif; ?>
								</div>
							</div> 
						<?php endforeach; endif; unset($_from); ?>
						<?php if ($this->_tpl_vars['comment']['page']): ?>
							<div class="page"><?php echo $this->_tpl_vars['comment']['page']; ?>
</div>	
						<?php endif; ?> 
					<?php else: ?>
							<div class="nomsg">暂无评价</div>
					<?php endif; ?>	 
						</div> 